//
//  SEGTarget_WorkOrder.m
//  SEGUhomePropertyBaseService
//
//  Created by JokerHe on 2018/4/3.
//  Copyright © 2018年 刘山. All rights reserved.
//

#import "SEGTarget_WorkOrder.h"
#import "SEGOrderInputViewController.h"
#import "SEGOrderDetailController.h"
#import "SEGMyServiceListViewController.h"
#import "SEGSignViewController.h"

@implementation SEGTarget_WorkOrder

/**
 * 报事报修
 * @author Joker
 */
-(UIViewController *)segAction_initOrderInputViewController:(NSDictionary *)params {
    SEGOrderInputViewController *vc = [[SEGOrderInputViewController alloc] init];
    if (params[@"action"]) vc.isHomeEnter = YES;
    return vc;
}

/**
 * 工单详情
 * @author Joker
 */
-(UIViewController *)segAction_initOrderDetailController:(NSDictionary *)params {
    SEGOrderDetailController *vc = [[SEGOrderDetailController alloc] init];
    vc.orderDict = [params valueForKey:@"orderDict"];
    vc.pendingModel = [params valueForKey:@"pendingModel"];
    return vc;
}


/**
 工单记录（原：我的服务）
 @return Joker
 */
- (UIViewController *)segAction_initMyServiceListViewController:(NSDictionary *)params {
    SEGMyServiceListViewController *vc = [[SEGMyServiceListViewController alloc] init];
    return vc;
}


/**
 * 签名类
 * @author Sam
 */
-(UIViewController *)segAction_initSEGSignViewController:(NSDictionary *)params{
    SEGSignViewController *vc = [[SEGSignViewController alloc] init];
    vc.completeBlock = [params valueForKey:@"completeBlock"];
    return vc;
}

@end
